package cn.wywk.netty.push.example.service;

/**
 * @description:
 * @projectName:netty-push-example
 * @see:cn.wywk.netty.push.example.service
 * @author:zhangwenxue
 * @createTime:2021/3/2 17:36
 * @version:1.0
 */
public interface PushService {

    /**
     * @description 推送给指定用户
     * @param userId 用户id
     * @param msg 消息体
     * @return void
     * @author zhangwenxue
     * @createTime 2021/3/2 17:36
     **/
    void pushMsgToOne(String userId,String msg);

    /**
     * @description 推送给所有在线用户
     * @return void
     * @author zhangwenxue
     * @createTime 2021/3/2 17:37
     **/
    void pushMsgToAll(String msg);

}
